<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

<!-- Bootstrap core CSS -->
<link href="${base}/assets/libs/bootstrap/3.3.7/css/bootstrap.css"
	rel="stylesheet">
<title>江西农业大学软件创新大赛</title>
</head>
<body role="document"> 
	<input type="hidden" id="base" value="${base}">
	<!-- Fixed navbar -->
	<nav class="navbar navbar-inverse navbar-fixed-top">
	<div class="container">
		<div id="navbar" class="navbar-collapse collapse">
			<ul class="nav navbar-nav">
				<li><a href="${pageContext.request.contextPath}/index/index.html">首 页</a></li>
				<!--<li><a href="#about">报名流程</a></li>-->
				<!--<li><a href="#contact">注册队伍</a></li>-->
				<li><a href="${base}/view/userInfo">个人主页</a></li>
				<li><a href="${base}/logout">注销</a></li>
			</ul>
		</div>
		<!--/.nav-collapse -->
	</div>
	</nav>
	<div class="container theme-showcase" role="main">
		<div class="row">
			<div class="col-md-4 col-md-offset-4">
				<div class="page-header">
					<br />
					<br />
					<h2 align="center"><font size="6" color="#000000" >成员信息</font></h2>
				</div>

				 <form action="${base}/member/addMember" method="post"> 
				   <div class="form-group ">
						<label for="name">学号</label> 
						<p>
							<small>* 输入学号即可查询出对应信息。</small>
						</p>
						<input name="sid" type="text"
							class="form-control" id="sid" placeholder="例：20151973"
							value="${form.sid?if_exists }" maxlength="8"> <span id="errorSid"
							style="color: red;"></span>
					</div>
					<div class="form-group ">
						<label for="name">姓名</label>
						<input name="memberName" type="text"
							class="form-control" id="memberName" >
						<span id="errorName" style="color: red;">${adderrors.name }</span>
					</div>
					<div class="form-group ">
						<div class="dropdown">
							 <!-- <label for="academy">院系</label> 
							<select name="memberAcademy" id="academy" class="form-control">
								<option>===请选择===</option>
								<option value="软件学院">软件学院</option>
							</select>
							<span id="errorAcademy" style="color: red;">${adderrors.academy }</span> -->
							<label for="academy">院系</label> 
							<input name="academy" type="text" class="form-control" id="academy" placeholder="例：软件学院" value="${form.name?if_exists }">
							<span id="errorAcademy" style="color: red;"></span>
						</div>
					</div>
					<!-- <div class="form-group ">
						<label for="major">专业</label> <input name="major" type="text"
							class="form-control" id="major">
							<select name="memberMajor" id="major" class="form-control" >
								<option>===请选择===</option>
								<option value="软件工程">软件工程</option>
							</select>
							<span id="errorMajor" style="color: red;">${adderrors.major }</span>
					</div> -->
					<div class="form-group ">
						<label for="classs">班级</label> <input name="memberClasss" type="text"
							class="form-control" id="classs" placeholder="例：软件工程1503">
							<span id="errorClass" style="color: red;">${adderrors.classs }</span>
					</div>
					
					<div class="form-group ">
						<label for="tel">联系电话</label>
						<input name="memberTel" type="text" class="form-control" id="tel" maxlength="11"
						placeholder="选填">
						<span id="errorTel" style="color: red;">${adderrors.tel }</span>
					</div>
					
					<!-- <div class="form-group ">
						<label for="email">邮箱</label>
						<input name="memberEmail" type="email" class="form-control" id="email"
							placeholder="选填" /> 
							<span id="errorSpan" style="color: red;">${msg}</span>
						<span id="errorSpan" style="color: red;">${adderrors.email }</span>
					</div> -->
					
					
					<div class="form-group">
						<button class="btn btn-primary" type="button" id="addMember">确定</button>
					</div>
			</form> 
			</div>
		</div>
	</div>
	<script type="text/javascript"
		src="${base}/assets/libs/jquery/1.12.4/jquery.js"></script>
	<script type="text/javascript"
		src="${base}/assets/libs/bootstrap/3.3.7/js/bootstrap.js"></script>
	<script type="text/javascript" src="${base}/assets/js/member.js"></script>
	</body>
</html>